package country

import (
	"fmt"
	"sieve_engine/lib/region"
)

func Get(r *region.Region) string {
	return data[fmt.Sprintf("%d-%d-%d", r.R1, r.R2, r.R3)]
}

var data = map[string]string{
	"1-1-1":  "CN",
	"1-1-2":  "HK",
	"1-1-3":  "MO",
	"1-1-4":  "TW",
	"1-1-5":  "MN",
	"1-1-6":  "KP",
	"1-1-7":  "KR",
	"1-1-8":  "JP",
	"1-2-1":  "PH",
	"1-2-2":  "VN",
	"1-2-3":  "LA",
	"1-2-4":  "KH",
	"1-2-5":  "MM",
	"1-2-6":  "TH",
	"1-2-7":  "MY",
	"1-2-8":  "BN",
	"1-2-9":  "SG",
	"1-2-10": "ID",
	"1-2-11": "TL",
	"1-3-1":  "NP",
	"1-3-2":  "BT",
	"1-3-3":  "BD",
	"1-3-4":  "IN",
	"1-3-5":  "PK",
	"1-3-6":  "LK",
	"1-3-7":  "MV",
	"1-3-8":  "IO",
	"1-4-1":  "KZ",
	"1-4-2":  "KG",
	"1-4-3":  "TJ",
	"1-4-4":  "UZ",
	"1-4-5":  "TM",
	"1-5-1":  "AF",
	"1-5-2":  "IQ",
	"1-5-3":  "IR",
	"1-5-4":  "SY",
	"1-5-5":  "JO",
	"1-5-6":  "LB",
	"1-5-7":  "IL",
	"1-5-8":  "PS",
	"1-5-9":  "SA",
	"1-5-10": "BH",
	"1-5-11": "QA",
	"1-5-12": "KW",
	"1-5-13": "AE",
	"1-5-14": "OM",
	"1-5-15": "YE",
	"1-5-16": "GE",
	"1-5-17": "AM",
	"1-5-18": "AZ",
	"1-5-19": "TR",
	"1-5-20": "CY",
	"2-1-1":  "FI",
	"2-1-2":  "SE",
	"2-1-3":  "NO",
	"2-1-4":  "IS",
	"2-1-5":  "DK",
	"2-1-6":  "FO",
	"2-1-7":  "AX",
	"2-2-1":  "EE",
	"2-2-2":  "LV",
	"2-2-3":  "MD",
	"2-2-4":  "BY",
	"2-2-5":  "RU",
	"2-2-6":  "UA",
	"2-2-7":  "LT",
	"2-3-1":  "PL",
	"2-3-2":  "CZ",
	"2-3-3":  "SK",
	"2-3-4":  "HU",
	"2-3-5":  "DE",
	"2-3-6":  "AT",
	"2-3-7":  "CH",
	"2-3-8":  "LI",
	"2-4-1":  "GB",
	"2-4-2":  "IE",
	"2-4-3":  "NL",
	"2-4-4":  "BE",
	"2-4-5":  "LU",
	"2-4-6":  "FR",
	"2-4-7":  "MC",
	"2-4-8":  "GG",
	"2-4-9":  "IM",
	"2-4-11": "PF",
	"2-5-1":  "RO",
	"2-5-2":  "BG",
	"2-5-3":  "RS",
	"2-5-4":  "MK",
	"2-5-5":  "SI",
	"2-5-6":  "HR",
	"2-5-7":  "ME",
	"2-5-8":  "BA",
	"2-5-9":  "AL",
	"2-5-10": "GR",
	"2-5-11": "IT",
	"2-5-12": "MT",
	"2-5-13": "VA",
	"2-5-14": "SM",
	"2-5-15": "ES",
	"2-5-16": "PT",
	"2-5-17": "AD",
	"2-5-18": "GI",
	"3-1-1":  "CA",
	"3-1-2":  "US",
	"3-1-3":  "MX",
	"3-1-4":  "GL",
	"3-1-5":  "PM",
	"3-1-6":  "BM",
	"3-1-7":  "UM",
	"3-2-1":  "GT",
	"3-2-2":  "BZ",
	"3-2-3":  "SV",
	"3-2-4":  "HN",
	"3-2-5":  "NI",
	"3-2-6":  "CR",
	"3-2-7":  "PA",
	"3-3-1":  "BS",
	"3-3-2":  "CU",
	"3-3-3":  "JM",
	"3-3-4":  "HT",
	"3-3-5":  "DO",
	"3-3-6":  "AG",
	"3-3-7":  "KN",
	"3-3-8":  "DM",
	"3-3-9":  "LC",
	"3-3-10": "VC",
	"3-3-11": "GD",
	"3-3-12": "BB",
	"3-3-13": "TT",
	"3-3-14": "PR",
	"3-3-15": "VG",
	"3-3-16": "VI",
	"3-3-17": "AI",
	"3-3-18": "MS",
	"3-3-19": "GP",
	"3-3-20": "MQ",
	"3-3-21": "AW",
	"3-3-22": "SX",
	"3-3-23": "MF",
	"3-3-24": "BL",
	"3-3-25": "TC",
	"3-3-26": "KY",
	"3-3-27": "CW",
	"4-1-1":  "CO",
	"4-1-2":  "VE",
	"4-1-3":  "GY",
	"4-1-4":  "SR",
	"4-1-5":  "GF",
	"4-2-1":  "EC",
	"4-2-2":  "PE",
	"4-2-3":  "BO",
	"4-3-1":  "BR",
	"4-4-1":  "CL",
	"4-4-2":  "AR",
	"4-4-3":  "UY",
	"4-4-4":  "PY",
	"4-4-5":  "FK",
	"4-4-6":  "GS",
	"5-1-1":  "EG",
	"5-1-2":  "LY",
	"5-1-3":  "TN",
	"5-1-4":  "DZ",
	"5-1-5":  "MA",
	"5-1-6":  "AA",
	"5-1-7":  "MI",
	"5-1-8":  "IC",
	"5-2-1":  "SD",
	"5-2-2":  "SS",
	"5-2-3":  "ET",
	"5-2-4":  "ER",
	"5-2-5":  "SO",
	"5-2-6":  "DJ",
	"5-2-7":  "KE",
	"5-2-8":  "TZ",
	"5-2-9":  "UG",
	"5-2-10": "RW",
	"5-2-11": "BI",
	"5-2-12": "SC",
	"5-3-1":  "TD",
	"5-3-2":  "CF",
	"5-3-3":  "CM",
	"5-3-4":  "GQ",
	"5-3-5":  "GA",
	"5-3-6":  "CG",
	"5-3-7":  "CD",
	"5-3-8":  "ST",
	"5-4-1":  "MR",
	"5-4-2":  "SN",
	"5-4-3":  "GM",
	"5-4-4":  "ML",
	"5-4-5":  "BF",
	"5-4-6":  "GN",
	"5-4-7":  "GW",
	"5-4-8":  "CV",
	"5-4-9":  "SL",
	"5-4-10": "LR",
	"5-4-11": "CI",
	"5-4-12": "GH",
	"5-4-13": "TG",
	"5-4-14": "BJ",
	"5-4-15": "NE",
	"5-4-16": "NG",
	"5-4-17": "EH",
	"5-5-1":  "ZM",
	"5-5-2":  "AO",
	"5-5-3":  "ZW",
	"5-5-4":  "MW",
	"5-5-5":  "MZ",
	"5-5-6":  "BW",
	"5-5-7":  "NA",
	"5-5-8":  "ZA",
	"5-5-9":  "SZ",
	"5-5-10": "LS",
	"5-5-11": "MG",
	"5-5-12": "KM",
	"5-5-13": "MU",
	"5-5-14": "RE",
	"5-5-15": "SH",
	"5-5-16": "YT",
	"6-1-1":  "AU",
	"6-1-2":  "NZ",
	"6-1-3":  "PW",
	"6-1-4":  "FM",
	"6-1-5":  "MH",
	"6-1-6":  "KI",
	"6-1-7":  "NR",
	"6-1-8":  "MP",
	"6-1-9":  "GU",
	"6-1-10": "PG",
	"6-1-11": "SB",
	"6-1-12": "VU",
	"6-1-13": "FJ",
	"6-1-14": "NC",
	"6-1-15": "TV",
	"6-1-16": "WS",
	"6-1-17": "TO",
	"6-1-18": "CK",
	"6-1-19": "NU",
	"6-1-20": "TK",
	"6-1-21": "TI",
	"6-1-22": "WF",
	"6-1-23": "PN",
	"6-1-24": "AS",
	"6-1-25": "NF",
	"7-1-1":  "AQ",
	"8-1-1":  "BQ",
	"8-1-2":  "BV",
	"8-1-3":  "CC",
	"8-1-4":  "CX",
	"8-1-5":  "HM",
	"8-1-6":  "JE",
	"8-1-7":  "SJ",
	"8-1-8":  "TF",
}
